import request from '@/utils/request'

// 查询线下活动用户报名表列表
export function listCompassActUserRelation(query) {
  return request({
    url: '/system/CompassActUserRelation/list',
    method: 'get',
    params: query
  })
}

// 查询线下活动用户报名表详细
export function getCompassActUserRelation(id) {
  return request({
    url: '/system/CompassActInfo/get/userRelationList/' + id,
    method: 'get'
  })
}

// 新增线下活动用户报名表
export function addCompassActUserRelation(data) {
  return request({
    url: '/system/CompassActUserRelation',
    method: 'post',
    data: data
  })
}

// 修改线下活动用户报名表
export function updateCompassActUserRelation(data) {
  return request({
    url: '/system/CompassActUserRelation',
    method: 'put',
    data: data
  })
}

// 删除线下活动用户报名表
export function delCompassActUserRelation(id) {
  return request({
    url: '/system/CompassActUserRelation/' + id,
    method: 'delete'
  })
}

// 导出线下活动用户报名表
export function exportCompassActUserRelation(query) {
  return request({
    url: '/system/CompassActUserRelation/export',
    method: 'get',
    params: query
  })
}
